import axios from '@/libs/api.request'
/**
 * 出口新增
 */
export function licenceExportAdd (caseId) {
    return axios.request({
        url: '/licenceExportManage/add',
        params: {
            caseId
        },
        method: 'get'
    })
}

/**
 * 出口许可证批量申报
 */
export function licenceExportApply (data) {
    return axios.request({
        url: '/licenceExportManage/apply',
        data: data,
        method: 'post'
    })
}

// 出口许可证批量删除
export function licenceExportDel (data) {
    return axios.request({
        url: '/licenceExportManage/delete',
        data: data,
        method: 'post'
    })
}
// 出口许可证查看详情
export function licenceExportInfo (applyId) {
    return axios.request({
        url: '/licenceExportManage/info',
        params: {
            applyId
        },
        method: 'get'
    })
}
// 出口许可证查询
export function licenceExportList (data) {
    return axios.request({
        url: '/licenceExportManage/list',
        data: data,
        method: 'post'
    })
}
// 根据商品编码模糊查询商品明细
export function licenceExportQueryCode (data) {
    return axios.request({
        url: '/licenceExportManage/queryCode',
        data: data,
        method: 'post'
    })
}
// 出口许可证暂存/申报
export function licenceExportSave (data) {
    return axios.request({
        url: '/licenceExportManage/save',
        data: data,
        method: 'post'
    })
}
// 根据商品编码模糊查询商品明细
export function queryCode (data) {
    return axios.request({
        url: '/licenceExportManage/queryCode',
        data: data,
        method: 'post'
    })
}
// 机电产品进口许可证查询
export function licenceProductList (data) {
    return axios.request({
        url: '/licenceProductManage/list',
        data: data,
        method: 'post'
    })
}
// 产品批量申请
export function licenceProductApply (data) {
    return axios.request({
        url: '/licenceProductManage/apply',
        data: data,
        method: 'post'
    })
}
// 产品批量删除
export function licenceProductDel (data) {
    return axios.request({
        url: '/licenceProductManage/delete',
        data: data,
        method: 'post'
    })
}

// 产品许可证暂存/申报
export function licenceProductSave (data) {
    return axios.request({
        url: '/licenceProductManage/save',
        data: data,
        method: 'post'
    })
}
// 产品进口许可证详情
export function licenceProductInfo (applyId) {
    return axios.request({
        url: '/licenceProductManage/info',
        params: {
            applyId
        },
        method: 'get'
    })
}
